import axios from 'axios'


export const ZiJinZhiChuJiHuamx = class ZiJinZhiChuJiHuamx {
    static ziJinZhiChuJiHuamx = null
    requestUrl = 'http://localhost/fundPlanDetail'

    static getInstance() {
        if (this.ziJinZhiChuJiHuamx == null) {
            this.ziJinZhiChuJiHuamx = new ZiJinZhiChuJiHuamx()
        }
        return this.ziJinZhiChuJiHuamx
    }

    /**
     * 根据计划id查询明细
     * @param planId
     */
    getByPlan(planId) {
        return axios.get(`${this.requestUrl}/plan/${planId}`)
    }





}